<template>
   <div class="login-container">
    <div class="logo">
      <img src="https://fe-hmzs.itheima.net/assets/login-bg-e4ea539c.svg" alt="">
    </div>
    <div class="form">
      <h1>登录</h1>
      <el-card shadow="never" class="login-card">
        <!--登录表单-->
        <el-form :model="form" label-width="120px">
          <el-form-item label-width="0px" label="">
            <el-input v-model="form.username" />
          </el-form-item>

          <el-form-item label-width="0px" label="">
            <el-input v-model="form.password" />
          </el-form-item>

          <el-form-item label-width="0px" label="">
            <el-checkbox>
            记住我
            </el-checkbox>
          </el-form-item>
          
          <el-form-item label-width="0px" label="">
            <el-button type="primary">登录</el-button>
          </el-form-item>
        </el-form>
      </el-card>
    </div>
  </div>
    <!-- <el-row>
      <el-col :span="14"><div class="grid-content ep-bg-purple" />
          <img src="https://fe-hmzs.itheima.net/assets/login-bg-e4ea539c.svg" alt="">
      </el-col>
      <el-col :span="10"><div class="grid-content ep-bg-purple-light" />
        <el-form :model="form" label-width="120px">
          <el-form-item label="Activity name">
            <el-input v-model="form.name" />
          </el-form-item>
        </el-form>
      </el-col>
  </el-row> -->
</template>

<script setup>
import { ref } from "vue"

const form = ref({
  username:'',
  password:''
})

</script>

<style lang="scss" scoped>
// .el-row {
//   margin-bottom: 20px;
// }
// .el-row:last-child {
//   margin-bottom: 0;
// }
// .el-col {
//   border-radius: 4px;
// }

// .grid-content {
//   border-radius: 4px;
//   min-height: 36px;
// }
.login-container {
  display: flex;
  align-items: stretch;
  height: 100vh;
  .logo {
    flex: 3;
    // background: rgba(38, 72, 176) url(../../assets/common/login_back.png)
      // no-repeat center / cover;
    border-top-right-radius: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 0 100px;
    .icon {
      // background: url(../../assets/common/logo.png) no-repeat 70px center /
      //   contain;
      width: 300px;
      height: 50px;
      margin-bottom: 50px;
    }
    p {
      color: #fff;
      font-size: 18px;
      margin-top: 20px;
      width: 300px;
      text-align: center;
    }
  }
  .form {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 176px;
    .el-card {
      border: none;
      padding: 0;
    }
    h1 {
      padding-left: 20px;
      font-size: 24px;
    }
    .el-input {
      width: 350px;
      height: 44px;
      .el-input__inner {
        background: #f4f5fb;
      }
    }
    .el-checkbox {
      color:#606266;
    }
  }
}
</style>
